/**
 * 
 */
package edu.washington.tcss360.burningpenguins.tests;

import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;

import edu.washington.tcss360.burningpenguins.data.DataObject;
import edu.washington.tcss360.burningpenguins.data.Review;

/**
 * @author Rolando Sierra
 *
 */
public class ReviewTest {

	/** A review object to use in tests */
	private DataObject my_review;
	
	/** Sets up the data object for tests. */
	@Before
	public void setUp()
	{
		my_review = new Review();
	}

	/**
	 * Test method for getId.
	 */
	@Test
	public void testGetId() 
	{
		my_review.setId(3);
		assertSame("Incorrect Id", my_review.getId(), 3);
	}

	/**
	 * Test method for getUserId.
	 */
	@Test
	public void testGetUserId() 
	{
		((Review) my_review).setUserId(2);
		assertSame("Incorrect Id", ((Review) my_review).getUserId(), 2);
	}

	/**
	 * Test method for getPaperId.
	 */
	@Test
	public void testGetPaperId() 
	{
		((Review) my_review).setPaperId(2);
		assertSame("Incorrect Id", ((Review) my_review).getPaperId(), 2);
	}

	/**
	 * Test method for getQuestion1.
	 */
	@Test
	public void testGetQuestion1() 
	{
		((Review) my_review).setQuestion1("test");
		assertSame("Incorrect Output", ((Review) my_review).getQuestion1(), "test");
	}

	/**
	 * Test method for {@link edu.washington.tcss360.burningpenguins.data.Review#getRating1()}.
	 */
	@Test
	public void testGetRating1() 
	{
		((Review) my_review).setRating1(3);
		assertSame("Incorrect Output", ((Review) my_review).getRating1(), 3);
	}

	/**
	 * Test method for {@link edu.washington.tcss360.burningpenguins.data.Review#getQuestion2()}.
	 */
	@Test
	public void testGetQuestion2() 
	{
		((Review) my_review).setQuestion2("test");
		assertSame("Incorrect Output", ((Review) my_review).getQuestion2(), "test");
	}

	/**
	 * Test method for {@link edu.washington.tcss360.burningpenguins.data.Review#getRating2()}.
	 */
	@Test
	public void testGetRating2() 
	{
		((Review) my_review).setRating2(3);
		assertSame("Incorrect Output", ((Review) my_review).getRating2(), 3);
	}

	/**
	 * Test method for {@link edu.washington.tcss360.burningpenguins.data.Review#getQuestion3()}.
	 */
	@Test
	public void testGetQuestion3() 
	{
		((Review) my_review).setQuestion3("test");
		assertSame("Incorrect Output", ((Review) my_review).getQuestion3(), "test");
	}

	/**
	 * Test method for {@link edu.washington.tcss360.burningpenguins.data.Review#getRating3()}.
	 */
	@Test
	public void testGetRating3() 
	{
		((Review) my_review).setRating3(3);
		assertSame("Incorrect Output", ((Review) my_review).getRating3(), 3);
	}

	/**
	 * Test method for {@link edu.washington.tcss360.burningpenguins.data.Review#getQuestion4()}.
	 */
	@Test
	public void testGetQuestion4() 
	{
		((Review) my_review).setQuestion4("test");
		assertSame("Incorrect Output", ((Review) my_review).getQuestion4(), "test");
	}

	/**
	 * Test method for {@link edu.washington.tcss360.burningpenguins.data.Review#getRating4()}.
	 */
	@Test
	public void testGetRating4() 
	{
		((Review) my_review).setRating4(3);
		assertSame("Incorrect Output", ((Review) my_review).getRating4(), 3);
	}

	/**
	 * Test method for {@link edu.washington.tcss360.burningpenguins.data.Review#getQuestion5()}.
	 */
	@Test
	public void testGetQuestion5() 
	{
		((Review) my_review).setQuestion5("test");
		assertSame("Incorrect Output", ((Review) my_review).getQuestion5(), "test");
	}

	/**
	 * Test method for {@link edu.washington.tcss360.burningpenguins.data.Review#getRating5()}.
	 */
	@Test
	public void testGetRating5() 
	{
		((Review) my_review).setRating5(3);
		assertSame("Incorrect Output", ((Review) my_review).getRating5(), 3);
	}

	/**
	 * Test method for {@link edu.washington.tcss360.burningpenguins.data.Review#getQuestion6()}.
	 */
	@Test
	public void testGetQuestion6() 
	{
		((Review) my_review).setQuestion6("test");
		assertSame("Incorrect Output", ((Review) my_review).getQuestion6(), "test");
	}

	/**
	 * Test method for {@link edu.washington.tcss360.burningpenguins.data.Review#getRating6()}.
	 */
	@Test
	public void testGetRating6() 
	{
		((Review) my_review).setRating6(3);
		assertSame("Incorrect Output", ((Review) my_review).getRating6(), 3);
	}

	/**
	 * Test method for {@link edu.washington.tcss360.burningpenguins.data.Review#getQuestion7()}.
	 */
	@Test
	public void testGetQuestion7() 
	{
		((Review) my_review).setQuestion7("test");
		assertSame("Incorrect Output", ((Review) my_review).getQuestion7(), "test");
	}

	/**
	 * Test method for {@link edu.washington.tcss360.burningpenguins.data.Review#getRating7()}.
	 */
	@Test
	public void testGetRating7() 
	{
		((Review) my_review).setRating7(3);
		assertSame("Incorrect Output", ((Review) my_review).getRating7(), 3);
	}

	/**
	 * Test method for {@link edu.washington.tcss360.burningpenguins.data.Review#getQuestion8()}.
	 */
	@Test
	public void testGetQuestion8() 
	{
		((Review) my_review).setQuestion8("test");
		assertSame("Incorrect Output", ((Review) my_review).getQuestion8(), "test");
	}

	/**
	 * Test method for {@link edu.washington.tcss360.burningpenguins.data.Review#getRating8()}.
	 */
	@Test
	public void testGetRating8() 
	{
		((Review) my_review).setRating8(3);
		assertSame("Incorrect Output", ((Review) my_review).getRating8(), 3);
	}

	/**
	 * Test method for {@link edu.washington.tcss360.burningpenguins.data.Review#getQuestion9()}.
	 */
	@Test
	public void testGetQuestion9() 
	{
		((Review) my_review).setQuestion9("test");
		assertSame("Incorrect Output", ((Review) my_review).getQuestion9(), "test");
	}

	/**
	 * Test method for {@link edu.washington.tcss360.burningpenguins.data.Review#getRating9()}.
	 */
	@Test
	public void testGetRating9() 
	{
		((Review) my_review).setRating9(3);
		assertSame("Incorrect Output", ((Review) my_review).getRating9(), 3);
	}

	/**
	 * Test method for {@link edu.washington.tcss360.burningpenguins.data.Review#getSummaryRating()}.
	 */
	@Test
	public void testGetSummaryRating() 
	{
		((Review) my_review).setSummaryRating(3);
		assertSame("Incorrect Output", ((Review) my_review).getSummaryRating(), 3);
	}

	/**
	 * Test method for {@link edu.washington.tcss360.burningpenguins.data.Review#getSummaryComments()}.
	 */
	@Test
	public void testGetSummaryComments() 
	{
		((Review) my_review).setSummaryComments("test");
		assertSame("Incorrect Output", ((Review) my_review).getSummaryComments(), "test");
	}

}
